package com.ruoyi.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.order.domain.SerAppointment;
import com.ruoyi.order.mapper.SerAppointmentMapper;
import com.ruoyi.order.service.ISerAppointmentService;
import org.springframework.stereotype.Service;

/**
 * 订单Service业务层处理
 *
 * @author ruoyi
 * @date 2025-07-12
 */
@Service
public class SerAppointmentServiceImpl extends ServiceImpl<SerAppointmentMapper, SerAppointment> implements ISerAppointmentService {

    @Override
    public SerAppointment getOne(SerAppointment appointment) {
        return lambdaQuery().eq(SerAppointment::getUsername,appointment.getUsername())
                .eq(SerAppointment::getIdCard,appointment.getIdCard())
                .eq(SerAppointment::getDepartment,appointment.getDepartment())
                .eq(SerAppointment::getDate,appointment.getDate())
                .eq(SerAppointment::getTime,appointment.getTime())
                .one();
    }
}
